<?php

require_once "dbconnect.php";

$success_handler = "successfull.php";

$oder = $_REQUEST['order'];
if(isset($_REQUEST['order']) && $_REQUEST['order']!='' && $_REQUEST['sts']=2)
{
	//$up = mysql_query("UPDATE `orderbooking` SET `pay_status` = 'Paid' WHERE `orderbooking`.`id` ='".$_REQUEST['order']."' LIMIT 1 ");
	//Redirect(DIR_WS_SITE.'?page=successfull');
	//unset($_SESSION);
	Header("Location: $success_handler"."?order=".$_REQUEST['order']."&sts=2");
}

//pick up booking
//frontorder=reservation_id. From where ?
if(isset($_REQUEST['frontorder']) && $_REQUEST['frontorder']!='' && $_REQUEST['sts']==2)
{
	Header("Location: $success_handler"."?frontorder=".$_REQUEST['frontorder']."&sts=2");
}



?>

